package com.scut.scutzone.controller;



import com.alibaba.fastjson.JSONObject;
import com.scut.scutzone.service.DatabaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.configurationprocessor.json.JSONArray;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.scut.scutzone.entity.Comment;
import com.scut.scutzone.entity.User;
import com.scut.scutzone.vo.Result;
import org.springframework.boot.configurationprocessor.json.JSONArray;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author: lifeng Chan
 * @date: 2021/4/26 16:42
 * @description: 测试web层的类
 */


@RestController
@RequestMapping("/test")
public class TestHelloController {

    @GetMapping("")
    @ResponseBody
    public Result testApi(){
        Comment comment = new Comment(); comment.setContent("12345");
        return Result.success(comment);
    }
}
